package com.youhome.service.service.impl;

import com.youhome.service.mapper.ZipCodeMapper;
import com.youhome.service.model.ZipCode;
import com.youhome.service.service.ZipCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * Created by chen365 on 2019/04/15.
 */
@Service
public class ZipCodeServiceImpl implements ZipCodeService {

    @Autowired
    private ZipCodeMapper zipCodeMapper;

    @Override
    public ZipCode selectShortByPrimaryKey(String zip) {
        return zipCodeMapper.selectShortByPrimaryKey(zip);
    }

    @Override
    public Set<ZipCode> selectShortByBean(ZipCode record) {
        return zipCodeMapper.selectShortByBean(record);
    }

    @Override
    public Set<String> selectCountyByBean(ZipCode record) {
        return zipCodeMapper.selectCountyByBean(record);
    }
}
